const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token
  token: state => state.user.token,
  // 用户名
  username: state => state.user.userInfo.username,
  // 用户id
  userId: state => state.user.userInfo.userId,
  // 用户头像
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 企业id
  companyId: state => state.user.userInfo.companyId,
  // 路由侧边栏
  routes: state => state.permissions.routes,

  roles: state => state.user.userInfo.roles
}
export default getters
